package com.zmm.study.mes.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmm.study.mes.dto.system.SysUserDTO;
import com.zmm.study.mes.entity.system.SysUser;

/**
 * description
 * name SysUserService
 *
 * @author Zebulon
 * @date by 2022-05-05 21:00:39
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 保存
     *
     * @param record 用户信息
     * @throws Exception 异常
     */
    void save(SysUserDTO record) throws Exception;

    /**
     * 更新
     *
     * @param record 用户信息
     * @throws Exception 异常
     */
    void update(SysUserDTO record) throws Exception;

    /**
     * 获取用户角色菜单
     *
     * @param username 系统用户名
     * @return 返回结果
     * @throws Exception 异常
     */
    SysUserDTO getUserAndRoleAndMenuByUsername(String username) throws Exception;
}
